package day04;

import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;


public class Unique {
    static Scanner cin = new Scanner(System.in);

    public static void main(String[] args) {
        int capacity = 3;
        int[] a = new int[capacity];
        int size = 0;
        while (cin.hasNext()) {
            int cur = cin.nextInt();
            if (size >= capacity) {
                int[] b = new int[capacity << 1];
                // for(int i=0;i<capacity;i++)b[i]=a[i];
                System.arraycopy(a, 0, b, 0, capacity);
                capacity <<= 1;
                a = b;
            }
            System.err.println(String.format("a[%d]=%d", size, cur));
            a[size++] = cur;

        }
        Arrays.sort(a, 0, size);
        for (int i = 0; i < size; ++i) {
            System.out.print(a[i] + " ");
        }

    }

}